<div class="block-content block-content-full">
    <div class="form-group row">
        {!! Form::label('parent_id', '父级分类:',['class' => 'col-form-label col-sm-1']) !!}
        <div class="col-sm-5">
            {!! Form::select('parent_id', array_prepend($parents, '无', 0), $category->parent_id ?? 0, ['class' => 'form-control']) !!}
        </div>
    </div>
    <div class="form-group row">
        {!! Form::label('name', '分类名称:',['class' => 'col-form-label col-sm-1']) !!}
        <div class="col-sm-5">
            {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => '必填', 'required']) !!}
        </div>
    </div>
    <div class="form-group row">
        {!! Form::label('sort', '排序:',['class' => 'col-form-label col-sm-1']) !!}
        <div class="col-sm-2">
            {!! Form::number('sort', $category->sort ?? 0, ['class' => 'form-control', 'required', 'min' => 0, 'max' => 999999999]) !!}
        </div>
        <div class="col-sm-3">
            <span class="col-tips">(数值越大越排前面)</span>
        </div>
    </div>
    <div class="form-group row">
        {!! Form::label('state', '状态:',['class' => 'col-form-label col-sm-1']) !!}
        <div class="col-sm-5">
            {!! Form::select('state', \App\Models\ArticleCategory::STATES, $category->state ?? 1, ['class' => 'form-control']) !!}
        </div>
    </div>
</div>
<div class="block-footer">
    <button type="button" class="btn btn-default" onclick="history.go(-1)">取　消</button>
    <button type="submit" class="btn btn-primary">确　定</button>
</div>

